<div id="carouselContainer" [style.width]="width" [style.height]="height">
    <img *ngIf="imgSource.length == 1" [src]="imgSource[0]"/>
    <ng-container *ngIf="imgSource.length > 1">
        <img *ngFor="let url of imgSource;let i=index" src="{{url}}"
             [@moreImgState]="imgSourceState[i]" (@moreImgState.done)="animationDone($event)"/>
    </ng-container>
</div>